import { LocalStorage } from "node-localstorage";
import getAppDataPath from "appdata-path";
const localStorage = new LocalStorage(`${getAppDataPath()}/yl-cli`);

export const cache = function(key, val) {
    if (val === undefined) {
      return localStorage.getItem(key);
    }
    localStorage.setItem(key, val);
};
